<?php
	error_reporting(E_ALL^E_NOTICE);
    require_once ('../config/config.php'); 
	session_start();
	if($_GET['ops']=="logout"){
	    //session_destroy();
	    unset($_SESSION['member']);
	    echo "<script>alert('成功退出！');location='./index.php';</script>";
	}
	if(empty($_SESSION['member'])){
		echo "<script>alert('登录后可查看商家详情！');location='./index.php';</script>";
	}
	if($_GET['user']){
	    $businessRs=mysqli_fetch_array(mysqli_query($con,"select * from business where user='".$_GET['user']."'"));
	    if($businessRs['user']!=""){
	        $bondRs=mysqli_fetch_array(mysqli_query($con,"select * from bond where user='".$_GET['user']."'"));
	    }
	}
?>
<html lang="zh-CN" class="translated-ltr"><head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

	<!-- CSS -->
	<link rel="stylesheet" href="css/bootstrap-reboot.min.css">
	<link rel="stylesheet" href="css/bootstrap-grid.min.css">
	<link rel="stylesheet" href="css/owl.carousel.min.css">
	<link rel="stylesheet" href="css/nouislider.min.css">
	<link rel="stylesheet" href="css/select2.min.css">
	<link rel="stylesheet" href="css/jquery.mCustomScrollbar.min.css">
	<link rel="stylesheet" href="css/ionicons.min.css">
	<link rel="stylesheet" href="css/main.css">

	<!-- Favicons -->
	<link rel="icon" type="image/png" href="icon/favicon-32x32.png" sizes="32x32">
	<link rel="apple-touch-icon" href="icon/favicon-32x32.png">
	<link rel="apple-touch-icon" sizes="72x72" href="icon/apple-touch-icon-72x72.png">
	<link rel="apple-touch-icon" sizes="114x114" href="icon/apple-touch-icon-114x114.png">
	<link rel="apple-touch-icon" sizes="144x144" href="icon/apple-touch-icon-144x144.png">

	<meta name="description" content="">
	<meta name="keywords" content="">
	<meta name="author" content="Dmitry Volkov">
	<title>校园兼职网站 - 商户介绍</title>
    <link type="text/css" rel="stylesheet" charset="UTF-8" href="https://translate.googleapis.com/translate_static/css/translateelement.css"></head>
    <link rel="stylesheet" href="./editor/themes/default/default.css" />
	<link rel="stylesheet" href="./editor/plugins/code/prettify.css" />
	<script charset="utf-8" src="./editor/kindeditor-all-min.js"></script>
	<script charset="utf-8" src="./editor/lang/zh-CN.js"></script>
	<script charset="utf-8" src="./editor/plugins/code/prettify.js"></script>
	<script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="content"]', {
				cssPath : './editor/plugins/code/prettify.css',
				uploadJson : './editor/php/upload_json.php',
				fileManagerJson : './editor/php/file_manager_json.php',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
				}
			});
			prettyPrint();
		});
	</script>
<body>
	<!-- header -->
		<header class="header">
		<div class="container">
			<div class="row">
				<div class="col-7 col-md-9 col-lg-8 col-xl-9">
					<div class="header__content">
						<!-- header menu btn -->
						<button class="header__btn" type="button">
							<span></span>
							<span></span>
							<span></span>
						</button>
						<!-- end header menu btn -->

						<!-- header logo -->
						<a href="index.php" class="header__logo">
							<b>校园兼职网站</b>
						</a>
						<!-- end header logo -->

						<!-- header nav -->
						<ul class="header__nav">
							<!-- dropdown -->
							<li class="header__nav-item">
								<a href="index.php" class="header__nav-link"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">首页</font></font></a>
							</li>
							<li class="header__nav-item">
								<a href="news.php" class="header__nav-link"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">新闻</font></font></a>
							</li>
							<!-- end dropdown -->

							<!-- dropdown -->
							<li class="header__nav-item">
								<a class="dropdown-toggle header__nav-link" href="#" role="button" id="dropdownMenuProjects" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">分类</font></font></a>

								<ul class="dropdown-menu header__dropdown-menu" aria-labelledby="dropdownMenuProjects">
									<?php
										$result=mysqli_query($con,"select * from class order by id asc");
										while($rs=mysqli_fetch_array($result)){
									?>
											<li><a href="index.php?classId=<?php echo $rs['id'];?>"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"><?php echo $rs['className'];?></font></font></a></li>
									<?php }?>
								</ul>
							</li>
							<!-- end dropdown -->

							<!-- dropdown -->
							<li class="header__nav-item">
								<a class="dropdown-toggle header__nav-link" href="#" role="button" id="dropdownMenuJobs" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">商家服务</font></font></a>

								<ul class="dropdown-menu header__dropdown-menu" aria-labelledby="dropdownMenuJobs">
									<li><a href="add-job.php"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">发布工作</font></font></a></li>
								</ul>
							</li>
							<!-- end dropdown -->
						</ul>
						<!-- end header nav -->

					</div>
				</div>

				<div class="col-5 col-md-3 col-lg-4 col-xl-3">
					<div class="header__content header__content--end">
						<div class="header__profile">
							<?php
								if(empty($_SESSION['member'])){?>
									<a href="./signin.php"  role="button" id="dropdownMenuProfile">
										<span>
											<font style="vertical-align: inherit;">
												<font style="vertical-align: inherit;">登录</font>
											</font>
										</span>
									</a>
							<?php
								}else{?>
									<a class="dropdown-toggle header__profile-btn" href="#"  role="button" id="dropdownMenuProfile" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
										<span>
											<font style="vertical-align: inherit;">
												<font style="vertical-align: inherit;">欢迎您，<?php echo $_SESSION['member'];?></font>
											</font>
										</span>
									</a>
									<ul class="dropdown-menu dropdown-menu-right header__dropdown-menu header__dropdown-menu--right" aria-labelledby="dropdownMenuProfile">
										<li><a href="./company.php"><i class="icon ion-ios-exit"></i><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">个人信息</font></font></a></li>
										<li><a href="./complaints-list.php"><i class="icon ion-ios-exit"></i><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">投诉记录</font></font></a></li>
										<li><a href="../master/login.php"><i class="icon ion-ios-exit"></i><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">后台管理</font></font></a></li>
										<li><a href="./resume.php"><i class="icon ion-ios-exit"></i><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">我的简历</font></font></a></li>
										<li><a href="?ops=logout"><i class="icon ion-ios-exit"></i><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">登出</font></font></a></li>
									</ul>
							<?php
								}
							?>
						</div>
					</div>
				</div>
			</div>
		</div>
	</header>
	<!-- end header -->

	<!-- main content -->
	<main class="main main--breadcrumb">
		<!-- breadcrumb -->
		<div class="breadcrumb">
			<div class="container">
				<div class="row">
					<div class="col-12">
						<ul class="breadcrumb__wrap">
							<li class="breadcrumb__item"><a href="index.php"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">首页</font></font></a></li>
							<li class="breadcrumb__item breadcrumb__item--active"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">商户介绍</font></font></li>
						</ul>
					</div>
				</div>
			</div>
		</div>
		<!-- end breadcrumb -->

		<div class="container">
			<div class="row">
				<div class="col-12 col-md-7 col-xl-8">
					<!-- form -->
					<form action="./resume.php" method="post" class="form">
						<h2 class="form__title"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">详细信息</font></font></h2>
						<div class="form__group">
							<label for="name" class="form__label"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">是否为商户：</font></font></label>
							<input type="text" id="name" class="form__input" value="<?php if($businessRs['user']==""){echo "非商户";}else{echo "商户";}?>" readonly="readonly">
						</div>
						<div class="form__group">
							<label for="email" class="form__label"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">当前状态：</font></font></label>
							<input type="text" id="name" class="form__input" value="<?php if($businessRs['state']=="1"){echo "正常";}else{echo "冻结";}?>" readonly="readonly">
						</div>
						<div class="form__group">
							<label for="subject" class="form__label"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">资质状态：</font></font></label>
							<input type="text" id="name" class="form__input" value="<?php if($businessRs['prove']=="1"){echo "已审核资质";}else{echo "未审核资质";}?>" readonly="readonly">
						</div>
						<div class="form__group">
							<label for="subject" class="form__label"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">联系电话：</font></font></label>
							<input type="text" id="name" class="form__input" value="<?php if($businessRs['tel']==""){echo "状态异常";}else{echo $businessRs['tel'];}?>" readonly="readonly">
						</div>
						<div class="form__group">
							<label for="text" class="form__label"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">保证金：</font></font></label>
							<input type="text" id="name" class="form__input" value="<?php if($bondRs['state']=="1"){echo "已缴纳保证金";}else{echo "未缴纳保证金";}?>" readonly="readonly">
						</div>
					</form>
					<!-- end form -->
				</div>

				<div class="col-12 col-md-5 col-xl-4">
					<!-- contacts -->
					<div class="contacts">
						<h2 class="contacts__title"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">商家信息说明</font></font></h2>

						<p class="contacts__text"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">请认真检查商户信息，寻找兼职时请务必擦亮眼睛！</font></font></p>
					</div>
					<!-- end contacts -->
				</div>
			</div>
		</div>
	</main>
	<!-- end main content -->

	<!-- footer -->
	<footer class="footer">
		<div class="container">
			<div class="row">
				<div class="col-12">
					<div class="footer__content">
						<a href="index.php" class="footer__logo">
							校园兼职网站
						</a>

						<span class="footer__copyright"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">&copy;2022 <a href="http://www.huayu.edu.cn" target="_black">山东华宇工学院</a> SomeRights</font></font></span>


						<button class="footer__back" type="button">
							<i class="icon ion-ios-arrow-round-up"></i>
						</button>
					</div>
				</div>
			</div>
		</div>
	</footer>
	<!-- end footer -->

	<!-- JS -->
	<script src="js/jquery-3.4.1.min.js"></script>
	<script src="js/bootstrap.bundle.min.js"></script>
	<script src="js/owl.carousel.min.js"></script>
	<script src="js/wNumb.js"></script>
	<script src="js/nouislider.min.js"></script>
	<script src="js/select2.min.js"></script>
	<script src="js/jquery.mousewheel.min.js"></script>
	<script src="js/jquery.mCustomScrollbar.min.js"></script>
	<script src="js/main.js"></script><div id="goog-gt-tt" class="skiptranslate" dir="ltr"><div style="padding: 8px;"><div><div class="logo"><img src="https://www.gstatic.com/images/branding/product/1x/translate_24dp.png" width="20" height="20" alt="Google 翻译"></div></div></div><div class="top" style="padding: 8px; float: left; width: 100%;"><h1 class="title gray">原文</h1></div><div class="middle" style="padding: 8px;"><div class="original-text"></div></div><div class="bottom" style="padding: 8px;"><div class="activity-links"><span class="activity-link">提供更好的翻译建议</span><span class="activity-link"></span></div><div class="started-activity-container"><hr style="color: #CCC; background-color: #CCC; height: 1px; border: none;"><div class="activity-root"></div></div></div><div class="status-message" style="display: none;"></div></div>

<div class="goog-te-spinner-pos"><div class="goog-te-spinner-animation"><svg xmlns="http://www.w3.org/2000/svg" class="goog-te-spinner" width="96px" height="96px" viewBox="0 0 66 66"><circle class="goog-te-spinner-path" fill="none" stroke-width="6" stroke-linecap="round" cx="33" cy="33" r="30"></circle></svg></div></div></body></html>